import request  from  '@/utils/request.js'

// 获取菜单数据
export const reqGetroleAuth = (roleName)=>{
    return request({url: `/admin/acl/permission/toAssign/${roleName}`, method: 'get'})
}
// 分配权限
export const reqSaveroleAuth = (roleId, permissionId)=>{
    return request({url: `/admin/acl/permission/doAssign`, method: 'post',params: {roleId, permissionId}})
}